﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001321 RID: 4897
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeApRewardScRsp : IMessage<TakeApRewardScRsp>, IMessage, IEquatable<TakeApRewardScRsp>, IDeepCloneable<TakeApRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003DC8 RID: 15816
		// (get) Token: 0x0600DB35 RID: 56117 RVA: 0x0024B39D File Offset: 0x0024959D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeApRewardScRsp> Parser
		{
			get
			{
				return TakeApRewardScRsp._parser;
			}
		}

		// Token: 0x17003DC9 RID: 15817
		// (get) Token: 0x0600DB36 RID: 56118 RVA: 0x0024B3A4 File Offset: 0x002495A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeApRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DCA RID: 15818
		// (get) Token: 0x0600DB37 RID: 56119 RVA: 0x0024B3B6 File Offset: 0x002495B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeApRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DB38 RID: 56120 RVA: 0x0024B3BD File Offset: 0x002495BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeApRewardScRsp()
		{
		}

		// Token: 0x0600DB39 RID: 56121 RVA: 0x0024B3C8 File Offset: 0x002495C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeApRewardScRsp(TakeApRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.level_ = other.level_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DB3A RID: 56122 RVA: 0x0024B420 File Offset: 0x00249620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeApRewardScRsp Clone()
		{
			return new TakeApRewardScRsp(this);
		}

		// Token: 0x17003DCB RID: 15819
		// (get) Token: 0x0600DB3B RID: 56123 RVA: 0x0024B428 File Offset: 0x00249628
		// (set) Token: 0x0600DB3C RID: 56124 RVA: 0x0024B430 File Offset: 0x00249630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003DCC RID: 15820
		// (get) Token: 0x0600DB3D RID: 56125 RVA: 0x0024B439 File Offset: 0x00249639
		// (set) Token: 0x0600DB3E RID: 56126 RVA: 0x0024B441 File Offset: 0x00249641
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003DCD RID: 15821
		// (get) Token: 0x0600DB3F RID: 56127 RVA: 0x0024B44A File Offset: 0x0024964A
		// (set) Token: 0x0600DB40 RID: 56128 RVA: 0x0024B452 File Offset: 0x00249652
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600DB41 RID: 56129 RVA: 0x0024B45B File Offset: 0x0024965B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeApRewardScRsp);
		}

		// Token: 0x0600DB42 RID: 56130 RVA: 0x0024B46C File Offset: 0x0024966C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeApRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Level == other.Level && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DB43 RID: 56131 RVA: 0x0024B4CC File Offset: 0x002496CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DB44 RID: 56132 RVA: 0x0024B53A File Offset: 0x0024973A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DB45 RID: 56133 RVA: 0x0024B542 File Offset: 0x00249742
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DB46 RID: 56134 RVA: 0x0024B54C File Offset: 0x0024974C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.Level);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DB47 RID: 56135 RVA: 0x0024B5C4 File Offset: 0x002497C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DB48 RID: 56136 RVA: 0x0024B634 File Offset: 0x00249834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeApRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DB49 RID: 56137 RVA: 0x0024B6B0 File Offset: 0x002498B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DB4A RID: 56138 RVA: 0x0024B6BC File Offset: 0x002498BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 34U)
					{
						if (num != 104U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005719 RID: 22297
		private static readonly MessageParser<TakeApRewardScRsp> _parser = new MessageParser<TakeApRewardScRsp>(() => new TakeApRewardScRsp());

		// Token: 0x0400571A RID: 22298
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400571B RID: 22299
		public const int RewardFieldNumber = 4;

		// Token: 0x0400571C RID: 22300
		private ItemList reward_;

		// Token: 0x0400571D RID: 22301
		public const int LevelFieldNumber = 3;

		// Token: 0x0400571E RID: 22302
		private uint level_;

		// Token: 0x0400571F RID: 22303
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04005720 RID: 22304
		private uint retcode_;
	}
}
